import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "../node_modules/axios/index.js";
import "./assets/styles/iconfont.css";
import "./plugins/element.js";
import "./assets/font/myIcon.css";
import * as custom from './utils/filters.js' 
Object.keys(custom).forEach(item => Vue.filter(item, custom[item]))

Vue.config.productionTip = false;
Vue.prototype.$axios = axios;

// vue - 导出 导入表格 
import JsonExcel from "vue-json-excel";
Vue.component("downloadExcel", JsonExcel);
// 接口测试
// import './utils/test';


Date.prototype.toLocaleString = function() {
  return (
    this.getFullYear() +
    "-0" +
    (this.getMonth() + 1) +
    "-" +
    "0" +
    this.getDate() +
    " " +
    this.getHours() +
    ":" +
    this.getMinutes() +
    ":" +
    this.getSeconds()
  );
};

var vue = new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");

export default vue
